package com.baitiaojun.system.admin.mapper.auth;

import com.baitiaojun.mybatisplus.core.basemapper.MyBaseMapper;
import com.baitiaojun.system.admin.pojo.SysUserDO;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;

public interface UserDetailsMapper extends MyBaseMapper<SysUserDO> {

    default SysUserDO selectOne(String username) {
        LambdaQueryWrapper<SysUserDO> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(SysUserDO::getUserName, username);
        return selectOne(queryWrapper);
    }
}
